﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Jage.Utils;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace Jage
{
    public class ThemeFactory
        : Singleton<ThemeFactory>
    {

        public Theme GetDefaultTheme()
        {
            Theme theme = new Theme();

            theme.Terrain.Ground.Add(new ThemeResource("ground_m_1"));
            theme.Terrain.Ground.Add(new ThemeResource("ground_m_2"));
            theme.Terrain.Ground.Add(new ThemeResource("ground_m_3"));
            theme.Terrain.Ground.Add(new ThemeResource("ground_m_4"));
            theme.Terrain.Ground.Add(new ThemeResource("ground_m_5"));
            theme.Terrain.Ground.Add(new ThemeResource("ground_m_6"));

            theme.Terrain.GroundVariations.Add(new ThemeResource("ground_m_var_1"));
            theme.Terrain.GroundVariations.Add(new ThemeResource("ground_m_var_2"));
            theme.Terrain.GroundVariations.Add(new ThemeResource("ground_m_var_3"));
            theme.Terrain.GroundVariations.Add(new ThemeResource("ground_m_var_4"));
            theme.Terrain.GroundVariations.Add(new ThemeResource("ground_m_var_5"));
            theme.Terrain.GroundVariations.Add(new ThemeResource("ground_m_var_6"));
            theme.Terrain.GroundVariations.Add(new ThemeResource("ground_m_var_7"));
            theme.Terrain.GroundVariations.Add(new ThemeResource("ground_m_var_8"));

            var tree1 = new FoliageTheme() { Name = "Tree_1" };
            theme.Foliage.Add(tree1);
            tree1.Variations.Add(new ThemeResource("tree_1_1"));
            tree1.Variations.Add(new ThemeResource("tree_1_2"));
            tree1.Variations.Add(new ThemeResource("tree_1_3"));
            tree1.Variations.Add(new ThemeResource("tree_1_4"));

            return theme;
        }

    }
}
